package com.followerback.model;

import javax.persistence.Id;

import com.google.appengine.api.datastore.Text;
import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;

@Cached public class TwitterProfileFollower {

	@Id private Long id;
	
	private long userID;
	
	@Unindexed private String screenName;
	
	@Unindexed private String pictureURL = "";
	
	@Unindexed private Text description;
	
	private long creationTime;

	public TwitterProfileFollower(long userID, String screenName, String pictureURL, String description) {
		this.userID = userID;
		this.screenName = screenName;
		this.pictureURL = pictureURL;
		this.description = new Text(description);
		this.creationTime = System.currentTimeMillis();
	}

	public TwitterProfileFollower() {
		super();
	}

	public Long getId() {
		return id;
	}

	public String getScreenName() {
		return screenName;
	}

	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}

	public String getPictureURL() {
		return pictureURL;
	}

	public void setPictureURL(String pictureURL) {
		this.pictureURL = pictureURL;
	}

	public long getUserID() {
		return userID;
	}

	public String getDescription() {
		return description.getValue();
	}

	public void setDescription(String description) {
		this.description = new Text(description);
	}

	public long getCreationTime() {
		return creationTime;
	}
}
